<?php
class Captcha_model extends Model
{
  function __construct()
  {
    parent::Model();
    $this->load->plugin('captcha');
  }

  function Captcha_model()
  {
    parent::__construct();
    $this->load->plugin('captcha');
  }

  function generate_captcha ()
  {
            $vals = array(
                            // 'word'		 => 'Random word',
                            'img_path'	 => './static/captcha/',
                            'img_url'	 => base_url().'/static/captcha/',
                            //'font_path'	 => './system/fonts/texb.ttf',
                            'img_width'	 => '90',
                            'img_height' => 30,
                            'expiration' => 7200
                        );
       
    return create_captcha($vals);
  }
}
?>